<%@ page language="java" contentType="application/vnd.ms-excel;charset=UTF-8"  pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/WEB-INF/struts-tags.tld"%>
<%
   String fileName="需求单报表.xls";
   fileName=java.net.URLEncoder.encode(fileName, "UTF-8");
   response.setHeader("Content-Disposition","attachment; filename="+fileName);
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
		<meta http-equiv="pragma" content="no-cache" />
		<meta http-equiv="Content-Type" content="application/vnd.ms-excel; charset=UTF-8">
		<title>报表</title>
</head>
<body>
		<table id="table1" name="table1" width="98%" border="1" cellspacing="0" cellpadding="7" align="center">
				<tr>
					<td bgcolor="9AC2EB" width="*">
					<div align="center"><font color="#FFFFFF">需求名称</font></div>
					</td>
					<td bgcolor="9AC2EB" width="9%">
					<div align="center"><font color="#FFFFFF">重要性</font>
					</div>
					</td>
					<td bgcolor="9AC2EB" width="11%">
					<div align="center"><font color="#FFFFFF">需求类别</font>
					</div>
					</td>
					<td bgcolor="9AC2EB" width="11%">
					<div align="center"><font color="#FFFFFF">需求部门</font></div>
					</td>
					<td bgcolor="9AC2EB" width="9%">
					<div align="center"><font color="#FFFFFF">需求人</font></div>
					</td>
					<td bgcolor="9AC2EB" width="9%">
					<div align="center"><font color="#FFFFFF">产品部门</font></div>
					</td>
					<td bgcolor="9AC2EB" width="9%">
					<div align="center"><font color="#FFFFFF">产品经理</font></div>
					</td>
					<td bgcolor="9AC2EB" width="9%">
					<div align="center"><font color="#FFFFFF">提出时间</font></div>
					</td>
					<td bgcolor="9AC2EB" width="9%">
					<div align="center"><font color="#FFFFFF">关联产品</font></div>
					</td>
					<s:iterator value="#request.processConfigDetails">
					<td bgcolor="9AC2EB">
						<div align="center"><font color="#FFFFFF"><s:property value="name" /></font></div>
					</td>
					</s:iterator>									
		</tr>
	<s:iterator value="#request.reportList">
		<tr>                      
			<td>
				<div align="center"><s:property value="name" /></div>
			</td>
			<td>
				<div align="center"><s:property value="importance" /></div>
			</td>
			<td>
				<div align="center"><s:property value="type" /></div>
			</td>
			<td>
				<div align="center"><s:property value="startDeptObj.fullName" /></div>
			</td>
			<td>
				<div align="center"><s:property value="startPerson" /></div>
			</td>
			<td>
				<div align="center"><s:property value="prodDept.name" /></div>
			</td>
			<td style="width: 120px">
				<div align="center"><s:property value="prodPerson.fullName" /></div>
			</td>
			<td>
				<div align="center"><s:date name="advanTime" format="yyyy-MM-dd"/></div>
			</td>
			<td>
				<div align="center"></div>
			</td>
			<s:if test="#request.processConfigDetails!=null">
			<td colspan="${num}">
				<div align="left" width="100%">
					<img src='<s:url value="/images/new/jiantou.gif"/>' width="${percent }%" height="20"/><br/>
					<s:property value="currUser" />:<br/>
					<s:iterator value="reqProgresses" status="rp">
						<s:property value="#rp.index+1"/>.<s:property value="reqProg"/>
						&nbsp;完成<s:property value="percent"/>%
						【<s:date name="createTime" format="yyyy-MM-dd"/>】。<br/>
					</s:iterator>
				</div>
			</td>
			</s:if>									
		</tr>
	</s:iterator>
	</table>
</body>
</html>
